import { post, get } from "./config";

export const userInformation = params =>
    post("/fronted/registeruser/userpassword.shtml", params); //新用户填写信息
export const amendPassword = params =>
    post("/fronted/registeruser/amendPassword.shtml", params); //修改密码
export const submitLogin = params =>
    post("/fronted/registeruser/mallLogin.shtml", params); //登录
export const leftnavigation = params =>
    post("/fronted/productType/leftnavigation.shtml", params); //首页菜单列表
export const demonstrate = params =>
    post("/fronted/product/showProduct.shtml", params); //首页商品列表
export const batchSendSms = params =>
    post("/fronted/registeruser/smsvcode.shtml", params); //短信验证码
export const subRegisteriPhone = params =>
    post("/fronted/registeruser/subRegisteriPhone.shtml", params); //短信验证码验证
export const orderList = params =>
    post("/fronted/orderinfo/orderList.shtml", params); //订单列表
export const logisticsinquire = params =>
    post("/fronted/logistics/logisticsInfo.shtml", params); //物流信息查询
export const addressOperation = params =>
    post("/fronted/deliveryaddress/addressOperation.shtml", params); //收获地址接口
export const addressSetDefault = params =>
    post("/fronted/deliveryaddress/addressSetDefault.shtml", params); //设置默认收货地址
export const shoppingcart = params =>
    post("/fronted/shoppingcart/shoppingCartList.shtml", params); //购物车查询
export const shoppingcartdel = params =>
    post("/fronted/shoppingcart/shoppingCartOperation.shtml", params); //购物车操作
export const productDetail = params =>
    post("/fronted/productDetail/showProductDetail.shtml", params); //商品详情
export const proConfirmInfo = params =>
    post("/fronted/shoppingcart/proConfirmInfo.shtml", params); //订单确认页面
export const orderBatchNumber = params =>
    post("/fronted/orderinfo/orderBatchNumber.shtml", params); //获取订单流水号
export const orderCancel = params =>
    post("/fronted/orderinfo/orderCancel.shtml", params); //取消订单接口
export const orderCommit = params =>
    post("/fronted/orderinfo/orderCommit.shtml", params); //提交订单接口
export const orderEndStatus = params =>
    post("/fronted/orderinfo/orderEndStatus.shtml", params); //订单确认接口
export const orderPay = params =>
    post("/fronted/orderinfo/orderPay.shtml", params); //支付接口
export const bannerList = params =>
    post("/fronted/banner/bannerList.shtml", params); //轮播图查询
export const initProductType = params =>
    post("fronted/productType/initProductType.shtml", params); //类目初始化
export const initProductList = params =>
    post("/fronted/product/initProductList.shtml", params); //商品服务/商品导航栏页面初始化
export const initBrandList = params =>
    post("/fronted/brand/initBrandList.shtml", params); //品牌活动页面
export const queryProductByBrand = params =>
    post("/fronted/product/queryProductByBrand.shtml", params); //品牌店铺
export const initConditionList = params =>
    post("/fronted/conditions/initConditionList.shtml", params); //类目筛选条件
export const productList = params =>
    post("/fronted/product/productList.shtml", params); //筛选后商品列表
export const productInfo = params =>
    post("/fronted/product/productInfo.shtml", params); //商品详情
export const registpay = params =>
    post("/fronted/api/user/pay/alipay.shtml", params); //支付宝接口
export const aliPayBack = params =>
    post("/fronted/payback/aliPayBack.shtml", params); //支付宝回调接口
export const wxRepay = params =>
    post("/fronted/api/user/pay/wxRepay.shtml", params); //微信接口


    

